//
//  AXFAXFAddNewAddressViewCell.m
//  AIXF
//
//  Created by zhanghui on 2017/7/13.
//  Copyright © 2017年 Macx. All rights reserved.
//

#import "AXFAXFAddNewAddressViewCell.h"

@interface AXFAXFAddNewAddressViewCell ()<UITextFieldDelegate>

@property (weak, nonatomic) IBOutlet UILabel *tipLabel;


@end

@implementation AXFAXFAddNewAddressViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    //cell的点击样式为nil
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    
    self.content = self.contentTextField.text;
    
    self.contentTextField.delegate = self;
}


- (void)setModel:(AXFAddNewAddressModel *)model{
    _model = model;
    
    self.tipLabel.text = model.tip;
    self.contentTextField.placeholder = model.placeHoaderText;
    
}

- (void)textFieldDidEndEditing:(UITextField *)textField{
    
    self.model.result = textField.text;
    
    
    

}






@end
